package com.kejiguan.ui.model;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by YYY on 16/8/16.
 */
public class SelectSheduleObject {

    private String objectName;
    private String objectId;
    private boolean isSelect=false;
    private int position;
    private List<SubSelectSheduleObject> subSelectSheduleObjects;

    public String getObjectName() {
        return objectName;
    }

    public void setObjectName(String objectName) {
        this.objectName = objectName;
    }

    public String getObjectId() {
        return objectId;
    }

    public void setObjectId(String objectId) {
        this.objectId = objectId;
    }

    public boolean isSelect() {
        return isSelect;
    }

    public void setSelect(boolean select) {
        isSelect = select;
    }

    public int getPosition() {
        return position;
    }

    public void setPosition(int position) {
        this.position = position;
    }

    public List<SubSelectSheduleObject> getSubSelectSheduleObjects() {
        return subSelectSheduleObjects;
    }

    public void setSubSelectSheduleObjects(List<SubSelectSheduleObject> subSelectSheduleObjects) {
        this.subSelectSheduleObjects = subSelectSheduleObjects;
    }

    public void addSubSelectSheduleObject(SubSelectSheduleObject subSelectSheduleObject)
    {
        if (null==subSelectSheduleObjects)
        {
            subSelectSheduleObjects=new ArrayList<>();
        }

        subSelectSheduleObjects.add(subSelectSheduleObject);
    }
}
